package setting

var K8sConfig = struct {
	Enable bool
	Url    string
	Token  string
}{}

func loadK8sSettingsFrom(rootCfg ConfigProvider) {
	sec := rootCfg.Section("k8s")
	K8sConfig.Enable = sec.Key("ENABLE").MustBool(false)
	K8sConfig.Url = sec.Key("URL").MustString("")
	K8sConfig.Token = sec.Key("TOKEN").MustString("")
}
